package com.lx.boot.oss.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "获取Oss文件url")
public class DownloadUrlDTO {
    @NotBlank(message = "保存时OSS返回的文件地址不能为空!")
    @Schema(description = "保存时OSS返回的文件地址")
    private String path;

    @Schema(description = "有效时长", defaultValue = "60")
    private Integer second = 60;
}